<%@page import="com.hp.ccue.identity.util.WebRequestContextUtils"%>
<%@page
	import="com.hp.ccue.identity.authentication.domain.token.AccessTokenResponse"%>
<%@page
	import="com.hp.ccue.identity.authentication.domain.token.*"%>
<%@page import="com.hp.ccue.identity.IdmClient"%>
<%@page import="com.hp.ccue.identity.common.IdmConstant"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Login Details</title>
</head>
<body>

<h3> Login Response</h3>
	<%
	    AccessTokenResponse loginResponse = (AccessTokenResponse)session.getAttribute(IdmConstant.IDM_SECURITY_CONTEXT);
	    if (loginResponse != null) {
	%>
		<table border=1>
			<tr><td>user</td><td><%=loginResponse.getUser()%></td>
			<tr><td>refreshToken</td><td><%=loginResponse.getRefreshToken()%></td>
			<tr><td>token</td><td><%=loginResponse.getToken().getId()%></td>
			<tr><td>secondaryToken</td><td><%=loginResponse.getSecondaryToken()%></td>
			<tr><td>sessionState</td><td><%=loginResponse.getSessionState()%></td>
			<tr><td>secondaryTokens</td><td><%=loginResponse.getSecondaryTokens()%></td>
			<tr><td>serviceCatalog</td><td><%=loginResponse.getServiceCatalog()%></td>			
		</table>	
	<%
		}
	%>
	
</body>
</html>